export interface AddProductParams {
    title: string
    categoryId: number
    saleTime: number
    bannerUrl: string[]
    infoUrl: string[]
    price: number
    skus: Array<{ attr: string; skuUrl: string | null }>
}

export interface Product extends AddProductParams {
    id: number
    createdAt?: string
}

// 商品标签
export type ProductTag = 'hot' | 'new' | 'recommended' | 'limited'

export const ProductTagLabel: Record<ProductTag, string> = {
    hot: '热销',
    new: '新品',
    recommended: '推荐',
    limited: '预定',
}


